'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	const collection = db.collection('Order_list')
	const res = await collection.where({
	  openid:event.openid
	}).orderBy("expires_in", "desc").get()
	
	
	return res
};
